export default {
	//1、必须先指定命名空间：
	namespaced: true,
	//2、通过state来声明变量数据：
	state: () => {
		return {
			realName: uni.getStorageSync('realName')
		}
	},
	mutations: {
		setRealNameMethod(state, value) {
			uni.setStorageSync('realName', value)
		},
		removeRealNameMethod(state, val) {
			uni.removeStorageSync('realName')
		}
	},
	actions: {
		getRealNameMethod(state) {
			return uni.getStorageSync('realName')
		},

	},
}